﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QuanTri.master" AutoEventWireup="true" CodeFile="QuanLiSanPham.aspx.cs" Inherits="Admin_QuanLiSanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style6
        {
        }
        .style29
        {
            width: 177px;
        }
        .style5
        {
            width: 109px;
        }
        .auto-style1 {
            height: 26px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
    <tr>
        <td colspan="2" width="90%" 
            style="background-color: #008080; color: #FFFF00; font-weight: bold">
            DANH SÁCH SẢN PHẨM PHÂN LOẠI THEO TỪNG NHÓM VÀ TỪNG LOẠI<br />
        </td>
    </tr>
    <tr>
        <td class="style29" 
            
            style="color: #008000; background-color: #FFFFFF; font-weight: bold; font-size: large">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td style="color: #008000; background-color: #FFFFFF; font-weight: bold; font-size: large" 
            class="style29">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
    <table class="style1">
    
    <tr>
        <td class="style6">
            <asp:GridView ID="gvSanPham" runat="server" AllowPaging="True" 
                onpageindexchanging="gvSanPham_PageIndexChanging" PageSize="8" 
                DataKeyNames="MaSP" onselectedindexchanging="gvSanPham_SelectedIndexChanging">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td 
            style="background-color: #008080; color: #FFFF00; font-weight: bold; text-align: center;">
            CHI TIẾT SẢN PHẨM</td>
    </tr>
    <tr>
        <td>
            
            <table class="style1">
                <tr>
                    <td width="200px">
                        <asp:Label ID="Label1" runat="server" Text="Mã sản phẩm"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMaSP" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Thương hiệu"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlThuonghieu" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Tên sản phẩm"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenSP" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="Ảnh"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtHinhAnh" runat="server"></asp:TextBox>
                        <asp:Button ID="btnUphinh" runat="server" Text="Úp hình" 
                            onclick="btnUphinh_Click" />
                        <asp:Label ID="lblThongBao" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="Giá"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtGia" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <asp:Label ID="Label6" runat="server" Text="Tình trạng"></asp:Label>
                    </td>
                    <td class="auto-style1">
                        <asp:DropDownList ID="ddlTinhtrang" runat="server">
                            <asp:ListItem Value="1">Đang có hàng</asp:ListItem>
                            <asp:ListItem Value="2">Hết hàng</asp:ListItem>
                            <asp:ListItem Value="3">Hàng sắp về</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text="Bảo hành"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlBaohanh" runat="server">
                            <asp:ListItem>3 Tháng</asp:ListItem>
                            <asp:ListItem>6 Tháng</asp:ListItem>
                            <asp:ListItem>1 Năm</asp:ListItem>
                            <asp:ListItem>2 Năm</asp:ListItem>
                            <asp:ListItem>Không bảo hành</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text="Số lượng kho"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSoluong" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center; color: #FFFF00; background-color: #006666;">
                        <asp:Label ID="Label9" runat="server" Text="THÔNG TIN KỸ THUẬT" Font-Size="18pt"></asp:Label>
                    </td>
                </tr>                
                <tr>
                    <td colspan="2">
                        <table class="style1">
                <tr>
                    <td width="200px">
                        <asp:Label ID="Label10" runat="server" Text="Mã Thông tin"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMaTT" runat="server" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label11" runat="server" Text="CD/DVD"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCongnghecpu" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="Loại CPU"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtLoaicpu" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label13" runat="server" Text="Dung lượng Ram"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtRam" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label14" runat="server" Text="HDD"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtHDD" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label15" runat="server" Text="Display"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtdisplay" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label16" runat="server" Text="Vga"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtvga" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label17" runat="server" Text="Network"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtnetwork" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label18" runat="server" Text="Tích hợp"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txttichhop" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label19" runat="server" Text="OS"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtos" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label20" runat="server" Text="Kích thước"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtkichthuoc" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label21" runat="server" Text="Pin"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtpin" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label22" runat="server" Text="Khuyến mãi:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtkhuyenmai" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label23" runat="server" Text="Xuất xứ"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtxuatxu" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label24" runat="server" Text="Thời gian bảo hành"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtthoigianbaohanh" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label25" runat="server" Text="Keyboard"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtkeyboard" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnAdd" runat="server" Text="Add new" OnClick="btnAdd_Click" />
                        <asp:Button ID="btnLuu" runat="server" Text="Save" onclick="btnLuu_Click" />
                        <asp:Button ID="btnEdit" runat="server" Text="Edit" onclick="btnEdit_Click" />
                        <asp:Button ID="btnDelete" runat="server" Text="Delete" />
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                    </td>
                </tr>
            </table>
            
        </td>
    </tr>   
</table>
</asp:Content>

